import App from './App'

// #ifndef VUE3
import Vue from 'vue'
//引入websocket文件
import wsRequest from '@/utlis/websocket.js'
import uView from '@/uni_modules/uview-ui'
import store from './store/index'
import util from './utlis/util'
import Tabbar from "@/components/tabbar/index.vue"
Vue.prototype.$util = util;
Vue.use(uView)
Vue.component('Tabbar',Tabbar)
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
    ...App,
    store
})
//开启websocket
let websocket = new wsRequest("ws://112.103.231.177:8383",2000)
//挂载到全局
Vue.prototype.$socket = websocket
app.$mount()
    // #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
    const app = createSSRApp(App)
    return {
        app
    }
}
// #endif